package com.example.canal.conf;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;

/**
 * @author yzy
 * @date 2020/9/24
 */
@Data
@ConfigurationProperties(prefix = "spring.datasource")
public class DatasourceCustomerProperties {

    private CustomerProp read;


    private CustomerProp write;

    @Data
    public static class CustomerProp {

        private String jdbcUrl;

        private String password;

        private String driverClassName;

        private String username;
    }
}
